package cn.com.connext.scrm.repository.master;


import cn.com.connext.scrm.domain.master.DwaUserLessonInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DWAUserLessonInfoRepository extends JpaRepository<DwaUserLessonInfo, String> {

    List<DwaUserLessonInfo> findByUserId(String userId);

    List<DwaUserLessonInfo> findByUserIdAndCredentialNoIsNotNull(String userId);

    DwaUserLessonInfo findOneByUserIdAndLessonId(String userId, String lessonId);




}
